package lab02.test36;

public abstract class Student {
    //    Student类是一个抽象类，
    // 它包含一些基本的学生信息，
    // 如姓名、类别（本科生还是研究生）、
    // 所学课程（这里假定为3门课，用一维数组表示）成绩和成绩等级等
    String name;
    String category;
    double english;
    double chiense;
    double math;
    double avg;
    String achiveGrade;

    public Student() {
    }

    public Student(String name, String category, double english, double chiense, double math) {
        this.name = name;
        this.category = category;
        this.english = english;
        this.chiense = chiense;
        this.math = math;
    }

    public double avg() {
        avg = (chiense + math + english) / 3;
        return avg;
    }

    public String grade(){
        return null;
    }
}
